package server.business.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import server.business.pojo.BloodTestStates;
import server.business.pojo.BloodTestVo;
import server.main.config.cache.MybatisPlusRedisCache;
import server.business.pojo.BloodTestReview;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
* @author Galaxy
* @description 针对表【blood_test_review】的数据库操作Mapper
* @createDate 2022-11-08 12:46:24
* @Entity server.business.pojo.BloodTestReview
*/
@Mapper
//@CacheNamespace(implementation = MybatisPlusRedisCache.class)
public interface BloodTestReviewMapper extends BaseMapper<BloodTestReview> {
    /**
     * 根据blood_test_id查询
     * @param bloodTestId
     * @return
     */
    @Select("select * from blood_test_review where blood_test_id=#{bloodTestId}")
    BloodTestReview selectByBloodTestId(Long bloodTestId);

    Page<BloodTestVo> selectBloodTestReviewByPage(Page<BloodTestVo> page,
                                             @Param(Constants.WRAPPER) QueryWrapper<BloodTestVo> queryWrapper);

}




